﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using StationaryRequest.BLL;
using StationaryRequest.DTO;

namespace StationaryRequest.Service
{
    public class InventoryService : IInventoryService
    {
        InventoryManager inventorymanager;

        public InventoryService()
        {
            inventorymanager = new InventoryManager();
        }

        public string GetData( string value )
        {
            return string.Format( "You entered: {0}", value );
        }

        public IEnumerable<CategoryDTO> GetCategories()
        {
            return inventorymanager.GetStationaryCategories();
        }
    }
}
